package net.elive.utils;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
 * <p>
 * Title:ComUtils.java
 * </p>
 * <p>
 * Description:日志文件的工具类
 * </p>
 * <p>
 * Copyright: Copyright (c) 2010
 * </p>
 * <p>
 * Company:akson
 * </p>
 * @author: caojin_cool@126.com
 * @version: 0.1
 * @time: 2010-07-22 11:10:48
 *
 */
public final class LogUtils {

    public static Log getLog(Class<?> clazz, String name) {
        return LogFactory.getLog(new StringBuffer(clazz.getName()).append('.').append(name).toString());
    }

    public static Log getLog(Class<?> clazz) {
        return LogFactory.getLog(clazz.getName());
    }
}
